package com.cskaoyan.module.bean.statisticalreportsVO;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * {
 *     "columns": [
 *         "day",
 *         "users"
 *     ],
 *     "rows": [{
 *         "day": "2019-04-20",
 *         "users": 3
 *     }]
 * }
 */
@NoArgsConstructor
@Data
public class AdminStatUser4GetVO {
    @JsonProperty("columns")
    private List<String> columns;
    @JsonProperty("rows")
    private List<RowsDTO> rows;

    @NoArgsConstructor
    @Data
    public static class RowsDTO {
        @JsonProperty("day")
        private String day;
        @JsonProperty("users")
        private Integer users;
    }
}
